package com.ruoyi.data.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.data.mapper.TVehicleDataInfoMapper;
import com.ruoyi.data.domain.TVehicleDataInfo;
import com.ruoyi.data.service.ITVehicleDataInfoService;

/**
 * 车辆数据大屏Service业务层处理
 *
 * @author ruoyi
 * @date 2023-05-27
 */
@Service
public class TVehicleDataInfoServiceImpl implements ITVehicleDataInfoService {
	@Autowired
	private TVehicleDataInfoMapper tVehicleDataInfoMapper;

	/**
	 * 查询车辆数据大屏
	 *
	 * @param id 车辆数据大屏主键
	 * @return 车辆数据大屏
	 */
	@Override
	public TVehicleDataInfo selectTVehicleDataInfoById(Long id) {
		return tVehicleDataInfoMapper.selectTVehicleDataInfoById(id);
	}

	/**
	 * 查询车辆数据大屏列表
	 *
	 * @param tVehicleDataInfo 车辆数据大屏
	 * @return 车辆数据大屏
	 */
	@Override
	public List<TVehicleDataInfo> selectTVehicleDataInfoList(TVehicleDataInfo tVehicleDataInfo) {
		return tVehicleDataInfoMapper.selectTVehicleDataInfoList(tVehicleDataInfo);
	}

	/**
	 * 新增车辆数据大屏
	 *
	 * @param tVehicleDataInfo 车辆数据大屏
	 * @return 结果
	 */
	@Override
	public int insertTVehicleDataInfo(TVehicleDataInfo tVehicleDataInfo) {
			return tVehicleDataInfoMapper.insertTVehicleDataInfo(tVehicleDataInfo);
	}

	/**
	 * 修改车辆数据大屏
	 *
	 * @param tVehicleDataInfo 车辆数据大屏
	 * @return 结果
	 */
	@Override
	public int updateTVehicleDataInfo(TVehicleDataInfo tVehicleDataInfo) {
		return tVehicleDataInfoMapper.updateTVehicleDataInfo(tVehicleDataInfo);
	}

	/**
	 * 批量删除车辆数据大屏
	 *
	 * @param ids 需要删除的车辆数据大屏主键
	 * @return 结果
	 */
	@Override
	public int deleteTVehicleDataInfoByIds(Long[] ids) {
		return tVehicleDataInfoMapper.deleteTVehicleDataInfoByIds(ids);
	}

	/**
	 * 删除车辆数据大屏信息
	 *
	 * @param id 车辆数据大屏主键
	 * @return 结果
	 */
	@Override
	public int deleteTVehicleDataInfoById(Long id) {
		return tVehicleDataInfoMapper.deleteTVehicleDataInfoById(id);
	}
}
